Složka je prázdná.
<type 'exceptions.UnboundLocalError'> | Python 2.7.18: /usr/bin/python Sat May 18 07:11:22 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/www/doc/www.penicka.net/www/cgi-bin/print_files.py in <module>() |
22 |
23 if directory != '': |
=> 24 utils.print_dir_content_view(directory) |
25 |
26 print(web.get_template(footer)) |
utils = <module 'utils' from '/www/doc/www.penicka.net/www/cgi-bin/utils.pyc'>, utils.print_dir_content_view = <function print_dir_content_view>, directory = 'school_files/nj/nj_tematicky_sesit/P\xc3\xadsni\xc4\x8dky, b\xc3\xa1sni\xc4\x8dky, jazykolamy/P\xc5\x99\xc3\xadslov\xc3\xad - Sprichw\xc3\xb6rter' |
/www/doc/www.penicka.net/www/cgi-bin/utils.py in print_dir_content_view(base_path='school_files/nj/nj_tematicky_sesit/P\xc3\xadsni\xc4\x8dky, b\xc3\xa1sni\xc4\x8dky, jazykolamy/P\xc5\x99\xc3\xadslov\xc3\xad - Sprichw\xc3\xb6rter') |
144 print tag.tr_end() |
145 |
=> 146 if len(item) > 0: |
147 print '<div class="row">' |
148 for item in image: |
builtin len = <built-in function len>, item undefined |
<type 'exceptions.UnboundLocalError'>: local variable 'item' referenced before assignment
args =
("local variable 'item' referenced before assignment",)
message =
"local variable 'item' referenced before assignment"